package com.mangocity.airticket.b2b.webservice;

public class LowPriceServiceProxy implements com.mangocity.airticket.b2b.webservice.LowPriceService {
  private String _endpoint = null;
  private com.mangocity.airticket.b2b.webservice.LowPriceService lowPriceService = null;
  
  public LowPriceServiceProxy() {
    _initLowPriceServiceProxy();
  }
  
  public LowPriceServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initLowPriceServiceProxy();
  }
  
  private void _initLowPriceServiceProxy() {
    try {
      lowPriceService = (new com.mangocity.airticket.jingdong.webservice.LowPriceServiceImplServiceLocator()).getLowPriceServiceImplPort();
      if (lowPriceService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)lowPriceService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)lowPriceService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (lowPriceService != null)
      ((javax.xml.rpc.Stub)lowPriceService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.mangocity.airticket.b2b.webservice.LowPriceService getLowPriceService() {
    if (lowPriceService == null)
      _initLowPriceServiceProxy();
    return lowPriceService;
  }
  
  public com.mangocity.airticket.b2b.webservice.LowPriceResponse query(com.mangocity.airticket.b2b.webservice.LowPriceRequest parameters) throws java.rmi.RemoteException{
    if (lowPriceService == null)
      _initLowPriceServiceProxy();
    return lowPriceService.query(parameters);
  }
  
  
}